package cn.tedu.tmall.passport.service;

import cn.tedu.common.pojo.authentication.CurrentPrincipal;
import cn.tedu.tmall.passport.pojo.param.LoginByPhoneParam;
import cn.tedu.tmall.passport.pojo.param.UserLoginInfoParam;
import cn.tedu.tmall.passport.pojo.param.UserRegParam;
import cn.tedu.tmall.passport.pojo.vo.UserLoginResultVO;

public interface IUserService {

    UserLoginResultVO login(UserLoginInfoParam userLoginInfoParam,
                            String remoteAddr, String userAgent);

    void logout(CurrentPrincipal currentPrincipal);

    //用户注册
    int userReg(UserRegParam userRegParam);


    void sendMessage(String phone);

    UserLoginResultVO loginByPhone(LoginByPhoneParam loginByPhoneParam,
                                   String remoteAddr, String userAgent);
}
